﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTS
{
    class Swieczka
    {
        private Double min;
        private Double max;
        private Double open;
        private Double close;
        private DateTime data;
        private int volume;

        public Swieczka()
        {

        }
        public Swieczka(DateTime _data, Double _open, Double _min, Double _max, Double _close, int _volume)
        {
            min = _min;
            max = _max;
            open = _open;
            close = _close;
            volume = _volume;
            data = _data;
        }

        public Double GetMin()
        {
            return min;
        }
        public Double GetMax()
        {
            return max;
        }
        public Double GetOpen()
        {
            return open;
        }
        public Double GetClose()
        {
            return close;
        }
        public DateTime GetData()
        {
            return data;
        }
        public int GetVolume()
        {
            return volume;
        }

        public void SetMin(Double _min)
        {
            min = _min;
        }
        public void SetMax(Double _max)
        {
            max = _max;
        }
        public void SetOpen(Double _open)
        {
            open = _open;
        }
        public void SetClose(Double _close)
        {
            close = _close;
        }
        public void SetData(DateTime _data)
        {
            data = _data;
        }
        public void SetVolume(int _volume)
        {
            volume = _volume;
        }

        override public string ToString()
        {
            return data.Year.ToString()+"-"+data.Month.ToString()+"-"+data.Day.ToString() + " " + open.ToString() + " " + min.ToString() + " " + max.ToString() + " " + close.ToString() + " " + volume.ToString();
        }
    }
}
